<load href="__JS__/upload/jquery.uploadify.js" />
<load href="__JS__/My97DatePicker/WdatePicker.js" />

<script type="text/javascript">
    $(function() {
        uploadBase('image','{$Think.config.UPLOAD_PATH_ADVERT}','uploadAdvert')
    });
    function _afterComplete(){
        jump(TP_URL,1000);
    }
</script>
<div class="row-fluid">

    <div class="box span12" style="margin-top: 0">

        <div class="box-header well" data-original-title="">
            <h2><i class="icon-edit"></i> {$Think.lang.common_add} {$pagetitle} {$asd}</h2>
        </div>
        <div class="box-content">
            <form class="form-horizontal" action="__URL__/insert" method="post" id="baseForm" enctype="multipart/form-data">
                <fieldset>

                    <div class="control-group">
                        <label class="control-label" for="title">{$Think.lang.common_title}</label>
                        <div class="controls">
                            <input class="input-xlarge focused" id="title" type="text" name="title" value="{$row.title}">
                        </div>
                    </div>
                    <include file="Public:language" />
                    
                    <div class="control-group">
                        <label class="control-label" for="create_at">{$Think.lang.common_create_at}</label>
                        <div class="controls">
                            <input class="input-xlarge focused" id="create_at" type="text" name="create_at" value="{$row.create_at}">
                            <button type="button" class="btn" onclick="WdatePicker({lang:'en',dateFmt:'yyyy-MM-dd HH:mm:ss',el:'create_at'})"><i class="icon-calendar"></i></button>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="url_path">{$Think.lang.common_url_path}</label>
                        <div class="controls">
                            <input class="input-xxlarge focused" id="url_path" type="text" name="url_path" value="{$row.url_path}">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="image">{$Think.lang.common_image}</label>
                        <div class="controls">
                            <input class="input-xlarge focused" id="image" type="text" name="image"> <a class="btn btn-danger delete-image btn-primary "><i class="icon-remove icon-white"></i></a>
                            <div class="upload-box">
                                <div class="upload-button">
                                    <input type="text" id="image_upload" />
                                </div>
                                <div class="upload-img thumbnail image_show"></div>
                                
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="status">{$Think.lang.common_status}</label>
                        <div class="controls">
                           <label class="radio">
                            <input type="radio" name="status" id="optionsRadios1" value="1" checked>
                            {$Think.lang.common_on}
                            </label>
                            <label class="radio">
                            <input type="radio" name="status" id="optionsRadios2" value="0">
                            {$Think.lang.common_off}
                            </label>
                        </div>
                    </div>
                    


                    <include file="Public:action"/>
                </fieldset>
            </form>

        </div>
    </div>
</div>